﻿@model List<Clirelmgt.Models.ModuleModel>

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}

<div class="dashboard-wrapper">
    <div class="left-sidebar">
        <div class="row-fluid">
            <div class="span12">
                <div class="widget">
                    <div class="widget-header">
                        <div class="title">
                            List of modules
                        </div>
                        <span class="tools">
                            <a class="fs1" aria-hidden="true" data-icon="&#xe090;"></a>
                        </span>
                    </div>
                    <div class="widget-body">
                        <table class="table table-condensed table-striped table-bordered table-hover no-margin">
                            <thead>
                                <tr>
                                    <th>Module ID</th>
                                    <th>Name</th>
                                    <th>Description</th>
                                    <th>Menu Name</th>
                                    <th>Icon</th>
                                    <th></th>
                                </tr>
                            </thead>
                            <tbody>
                                @foreach (var module in Model)
                                {
                                    <tr>
                                        <td>
                                            @module.ModuleID
                                        </td>
                                        <td>
                                            @module.Name
                                        </td>
                                        <td>
                                            @module.Description
                                        </td>
                                        <td>
                                            @module.MenuName
                                        </td>
                                        <td>
                                            @module.IconImage
                                        </td>
                                        <td class="hidden-phone">

                                            <div class="btn-group">
                                                <button data-toggle="dropdown" class="btn btn-mini dropdown-toggle">
                                                    Action 
                                                <span class="caret"></span>
                                                </button>
                                                <ul class="dropdown-menu">
                                                    <li>
                                                        <a href="/Module/Card/@module.ModuleID">Edit
                                                        </a>
                                                    </li>
                                                    <li>
                                                        <a href="/Module/Objects?module=@module.ModuleID">Objects
                                                        </a>
                                                    </li>
                                                    @if(!module.IsStandard)
                                                    {
                                                    <li>
                                                        <a href="/Module/Delete/@module.ModuleID">Delete
                                                        </a>
                                                    </li>
                                                    }
                                                </ul>
                                            </div>
                                        </td>
                                    </tr>
                                }
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>

        </div>
    </div>

    <div class="right-sidebar">


        <div class="wrapper">
            <table class="table table-condensed table-striped table-bordered table-hover no-margin">
                <thead>
                    <tr>
                        <th style="width: 10%">
                            <input type="checkbox" class="no-margin" />
                        </th>
                        <th style="width: 70%">Name
                        </th>
                        <th style="width: 20%">Status
                        </th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>
                            <input type="checkbox" class="no-margin" />
                        </td>
                        <td>
                            <span class="name">Mahendra Singh Dhoni
                            </span>
                        </td>
                        <td>
                            <span class="label label label-info">New
                            </span>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <input type="checkbox" class="no-margin" />
                        </td>
                        <td>
                            <span class="name">Michel Clark
                            </span>
                        </td>
                        <td>
                            <span class="label label label-success">New
                            </span>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <input type="checkbox" class="no-margin" />
                        </td>
                        <td>
                            <span class="name">Rahul Dravid
                            </span>
                        </td>
                        <td>
                            <span class="label label label-important">New
                            </span>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <input type="checkbox" class="no-margin" />
                        </td>
                        <td>
                            <span class="name">Anthony Michell
                            </span>
                        </td>
                        <td>
                            <span class="label label label-info">New
                            </span>
                        </td>

                    </tr>
                    <tr>
                        <td>
                            <input type="checkbox" class="no-margin" />
                        </td>
                        <td>
                            <span class="name">Srinu Baswa
                            </span>
                        </td>
                        <td>
                            <span class="label label label-success">New
                            </span>
                        </td>

                    </tr>
                </tbody>
            </table>
        </div>

        <hr class="hr-stylish-1">

        <div class="wrapper">
            <div class="btn-toolbar no-margin">
                <div class="btn-group">
                    <a href="#" class="btn btn-success">
                        <i class="icon-white icon-headphones"></i>
                    </a>
                    <a href="#" class="btn btn-warning">
                        <i class="icon-white icon-thumbs-down"></i>
                    </a>
                    <a href="#" class="btn btn-warning2">
                        <i class="icon-white icon-signal"></i>
                    </a>
                    <a href="#" class="btn btn-info">
                        <i class="icon-white icon-share-alt"></i>
                    </a>
                </div>
                <div class="btn-group">
                    <a href="#" class="btn btn-inverse">
                        <i class="icon-white icon-trash"></i>
                    </a>
                </div>
            </div>
        </div>

    </div>
</div>
